import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {MenuInfoComponent} from "./menu-info/menu-info.component";
import {MenuEditComponent} from "./menu-edit/menu-edit.component";

const routes: Routes = [
  {
    path: "",
    component: MenuInfoComponent,
    data: {
      keep: true
    }
  },
  {
    path: "edit",
    component: MenuEditComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class MenuRoutingModule {
}
